LEK Installation

Support Matrix | Requirements (Refer to More)

  • Product and Operating System
_images/ProductAndOperationSystem.jpg
  • Product and JVM
_images/ProductAndJVM.jpg
  • Supported Browsers
_images/SupportedBrowsers.jpg
  • Product Compatibility
_images/ProductCompatibility.jpg

Development Machine Environment

  • OS: OS X EI Capitan, Version 10.11.3
  • JDK: 1.7.0_71

Logstash Installation

  1. Download Logstash 2.2.2 (logstash-2.2.2.tar.gz)

  2. Unzip
    _images/tarlogstash.png
  3. Create configuration file

    stevelee@SteveLee ~/Develop/logstash-2.2.2 vi myconf.conf

    # The # character at the beginning of a line indicates a comment. Use

    # comments to describe your configuration.

    input {

    stdin {

    }

    }

    # The filter part of this file is commented out to indicate that it is

    # optional.

    # filter {

    #

    # }

    output {

    stdout {

    }

    }

  4. Run

    stevelee@SteveLee ~/Develop/logstash-2.2.2 ./bin/logstash -f myconf.conf

    When terminal show “Logstash startup completed”, then you can type any words in terminal , such as “My First Logstash ,Oye!”, Terminal will output “2016-03-11T08:30:17.509Z SteveLee My First Logstash ,Oye!”. If you want o quit, just click Ctrl + D , logstash will be killed. (You also can use ps -ef |grep logstash to get pid, and kill that .

    _images/logstashrun.png
  5. Logstash Architecture

    _images/logstasharchitecture.png
  6. Advanced

  7. Reference (https://www.elastic.co/guide/en/logstash/current/index.html)

ElasticSearch Installation

  1. Download Elasticsearch 2.2.0 (elasticsearch-2.2.0.tar.gz)

  2. Unzip
    _images/tarelasticsearch.png
  3. Modify configuration file(elasticsearch.yml)

    stevelee@SteveLee ~/Develop/elasticsearch-2.2.0 vi ./config/elasticsearch.yml

    uncomment cluster.name, and set cluster.name: my-application-steve_dev

    uncomment node.name, and set node.name: steve_node_1_dev

  4. Run

    stevelee@SteveLee ~/Develop/elasticsearch-2.2.0 ./bin/elasticsearch &

    _images/elasticsearchrun.png
  5. CRUD

    a.Create an index

    Input the following code to terminal:

    curl -XPUT 'localhost:9200/customer?pretty'

    If created successfully, will show the following information:

    {

    "acknowledged" : true

    }

    b.Create one recode to customer

    Input the following code to terminal:

    curl -XPUT 'localhost:9200/customer/external/1?pretty' -d ' {

    "name": "John Doe"

    }'

    You will see the below response.

    {

    "_index" : "customer",

    "_type" : "external",

    "_id" : "1",

    "_version" : 1,

    "_shards" : {

    "total" : 2,

    "successful" : 1,

    "failed" : 0

    },

    "created" : true

    }

    c.Retrieve one recode from customer

    curl -XGET .......

    d.Delete one recode from customer

    curl -XDELETE .......

    e.Update one recode from customer

    curl -XPUT .......

  6. ElasticSearch Architecture

    _images/elasticsearcharchitecture.png
  7. Advanced

  8. Plugin

Marvel helps you keep a pulse on the state of your Elasticsearch deployment. As a window into your cluster, Marvel is a tool for optimizing your Elasticsearch performance and diagnosing issues quickly. (See More Marvel)
Head, a web front end for an Elasticsearch cluster. (See More Head)

See more plugins, please visit => https://www.elastic.co/guide/en/elasticsearch/plugins/2.2/plugin-management.html

_images/elasticsearchpluginhead.png
  1. Reference (https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)
  2. Other Tools
VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform. (See More VisualVM)

Kibana Installation

  1. Download Kibana 4.4.2 (kibana-4.4.2-darwin-x64.tar.gz)

  2. Unzip
    _images/tarkibana.png
  3. Run (Make sure that run elasticsearch service before run kibana, & means you will run the service in background)

    stevelee@SteveLee ~/Develop/kibana-4.4.1-darwin-x64 ./bin/kibana &

    _images/kibanarun.png
  4. Stop

    You need to find the pid via port, Then, you can kill the process via pid.

    stevelee@SteveLee ~/Develop/kibana-4.4.1-darwin-x64 lsof -iTCP:5601 | grep LISTEN

    You need to find the pid via process name, Then, you can kill the process via pid. The kibana’s process name is node, not kibnan, please refer to bin/kibana script file.

    stevelee@SteveLee ~/Develop/kibana-4.4.1-darwin-x64 ps -ef |grep node

  5. Access Kibana http://127.0.0.1:5601

    _images/kibanarun2.png
  6. Advanced

  7. Plugin(Sense)

Sense is a handy console for interacting with the REST API of Elasticsearch. (See More Sense)
  1. Reference (https://www.elastic.co/guide/en/kibana/current/introduction.html)